﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace FPC.Offer.UI.GeneralProcessor.SkyDriveHand
{
    /// <summary>
    /// RecoveryTableHandler 的摘要说明
    /// </summary>
    public class RecoveryTableHandler : IHttpHandler
    {
        FPC.Offer.Service.System_NetTrayTableService Sky = new Service.System_NetTrayTableService();
        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            var FName = context.Request["name"];
            var NetState = 2;
            List<Model.Dropbox_NetTray> a = Sky.Find(w => w.NetState == NetState).ToList();

            context.Response.Write(JsonConvert.SerializeObject(a.ToList()));
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}